<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">appid:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-alias_title" class="form-control" name="row[appid]" type="text"
                   value="{$row.appid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">appsecret:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company" class="form-control" name="row[appsecret]" type="text"
                   value="{$row.appsecret|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">微信认证:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="auths" key="key" item="item"}
                <label for="is_authentication-{$key}">
                    <input id="is_authentication-{$key}" name="row[is_authentication]" type="radio" value="{$item.value}" {if
                           condition="$item.value eq $row['is_authentication']" }checked{/if}/> {$item.label}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">账号类型:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="accountTypes" key="key" item="item"}
                <label for="account_type-{$key}">
                    <input id="account_type-{$key}" name="row[account_type]" type="radio" value="{$item.value}" {if
                           condition="$item.value eq $row['account_type']" }checked{/if}/> {$item.label}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label for="remark" class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="remark" name="row[remark]">{$row.remark|htmlentities}</textarea>
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
